<template>
	<view class="container bg-white">
		<view class="fill-height">
			<view class="text-center bg-white padding user-boxs">
				<view class="text-center ">
					<image class="image_180 round" src="../../static/logo.jpg"></image>
				</view>
				<view class="text-center margin-top-xs text-bold text-size-32">水木清源社区服务(成都)有限公司</view>
			</view>
			<view class="margin-top-xs">
				<cu-list-cell @action="handleClick" :list="menuList" :menuArrow="true"></cu-list-cell>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import {ref} from 'vue'
	import cuListCell from '@/components/cu-list-cell.vue';
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		useSettingStore
	} from '@/stores/index';
	const setting = useSettingStore();
	const menuList = ref([{
			cuIcon: 'location',
			name: '地址',
			desc: '四川省成都市清源社区'
		},
		{
			cuIcon: 'discover',
			name: '网址',
			desc: 'www.shuimuqingyuan.com'
		},
		{
			cuIcon: 'phone',
			name: '客服',
			desc: '023-1244-5451'
		}
	]);
	/**
	 * 点击事件
	 */
	function handleClick(e) {
		let val=e.currentTarget.dataset.value
		if(val.name=='客服'){
			handleCall()
		}
	}
	/**
		* 加载菜单
		*/
	const Info = ref({
		id: 9,
		name: '清源食堂',
		logo: 'http://www.hblue.top:48099/img/2023-02-25/b917f8bda706439490e47880f4442077.png',
		phone: '',
		communityId: 3,
		communityName: null,
		realName: null,
		latitude: '1111',
		longitude: '111',
		description: null,
		address: '',
		business: true,
		createTime: '2022-12-25 13:02:24',
		openList: []
	});
	const handleCall=()=>{
		uni.makePhoneCall({
			phoneNumber:Info.value.phone
		})
	}
	const onShopInfo = async () => {
		
	};
	onLoad(() => {
		onShopInfo()
	});
</script>

<style scoped>
	.user-boxs {
		padding: 50px;
	}
</style>
